/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.alipay.sofa.award.endpoint.holder;

import java.util.Locale;

/**
 * RequestLanguageFilter
 *
 * @author yangguanchao
 * @since 2018/08/27
 */
public class LocaleHolder {

    private static final ThreadLocal<Locale> LOCALE = new ThreadLocal<Locale>();

    public static void setLocale(Locale locale) {
        LOCALE.set(locale);
    }

    public static Locale getLocale() {
        return LOCALE.get();
    }

    public static void remove() {
        LOCALE.remove();
    }
}